﻿using System.Data;
using Entity;
using Ultilities;

namespace BUS
{
    public class UserBus
    {
        public DataTable CheckLogin(string userName, string password)
        {
            string[] arg = new string[] { "UserName", "PassWord" };
            string hashPassword = Globals.GetMD5(password);
            object[] obj = new object[] { userName, hashPassword };
            DataTable dt = CatalogueBase.GetData(UserEnt.STORE_CHECK_LOGIN, arg, obj).Tables[0];

            return dt;
        }
    }
}
